<?php
	session_start();
	require_once('common/config.php');
	require_once('../_helper/helper.php');
	require_once('../_model/order_model.php');
	


	if(!isset($_SESSION['logon']))
	{
		header("Location: /wks/login.php?url=order");
		exit();
	}
	if(isset($_GET['order_id']))
		$order_id = $_GET['order_id'];
	else
		$order_id = null;
		
	$action = $_GET['action'];
	$pageCMS = 999;
	
	if($action == 'list' )
	{
		//$supplier_arr =	GetSupplierAll();
		$orderValue= GetOrderById($order_id);
		$orderReferArr = GetOrderReferById($order_id);
		
				
		//Xu ly
		require_once('template/order_refer/order_refer_list.php');
		exit();
	}
	
	

?>